import { NameSpace } from 'utils/index';

const ns = NameSpace('projectCommitDetail');

export const UPDATE_DATA = ns('UPDATE_DATA');
export const RECEIVE_BUILDS = ns('RECEIVE_BUILDS');
export const UPDATE_PAGE_INFO = ns('UPDATE_PAGE_INFO');

export function updateData(data) {
  return (dispatch) => {
    dispatch({
      type: UPDATE_DATA,
      data,
    });
  };
}
